package com.csun.cmny.provider.model.dto.watch;

import io.swagger.annotations.ApiModel;
import lombok.Data;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotNull;

/**
 * @Auther: chisj chisj@foxmal.com
 * @Date: 2019-01-17 17:40
 * @Description: the class watch gps upload rate dto
 */
@Data
@ApiModel(value = "设置孝心手环GPS上传频率Dto")
public class WatchGpsUploadRateDto {

    private static final long serialVersionUID = -7478275387373657238L;

    /**
     * 设备Id
     */
    @NotNull(message = "{device.id.null}")
    private Long deviceId;

    /**
     * gps上传频率
     */
    @NotNull(message = "{watch.config.gps.rate.null}")
    @Range(min = 0, max = 300, message = "{watch.config.gps.rate.range}")
    private Integer gpsRate;

}
